package com.atguigu;

import com.atguigu.pojo.School;
import com.atguigu.service.SchoolService;
import com.atguigu.service.impl.SchoolServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

import java.util.List;

@SpringBootTest(classes = MySpringBoot.class)
public class testDemo {

    @Autowired
    private SchoolService schoolService;

    @Test
    public void selectTest(){
        List<School> schools = schoolService.selectAllService();
        schools.forEach(System.out::println);

    }


}
